package com.guigu.controller.stock;


import com.github.pagehelper.PageInfo;
import com.guigu.pojo.stock.SSecondProductArea;
import com.guigu.pojo.stock.SThirdProductArea;
import com.guigu.service.stock.SThirdProductAreaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import java.util.HashMap;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author Mr.Zhang
 * @since 2024-12-25
 */
@Controller
@RequestMapping("/s-third-product-area")
public class SThirdProductAreaController {

    @Autowired
    private SThirdProductAreaService sThirdProductAreaService;

    @GetMapping("/storage_third")
    public String storagethirdpro(){
        return "jsp/stock/a/set_storage_third_products";
    }

    @PostMapping("/initThirdProducts")
    @ResponseBody
    public PageInfo<SThirdProductArea> selectAllThirdPro(@RequestBody HashMap<String, Object> map){
        PageInfo<SThirdProductArea> pageInfo = sThirdProductAreaService.selectThirdFirst(map);
        return pageInfo;
    }
}

